﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MentalAlchemy.Compounds.MachineLearning
{
	public partial class SOMProperties : UserControl
	{
		#region - Public properties. -
		/// <summary>
		/// Network dimensions.
		/// </summary>
		public Size NetworkSize
		{
			get { return new Size ((int)WidthNumeric.Value, (int)HeightNumeric.Value); }
			set
			{
				WidthNumeric.Value = value.Width;
				HeightNumeric.Value = value.Height;
			}
		}

		/// <summary>
		/// Number of training epochs.
		/// </summary>
		public int EpochsCount
		{
			get { return (int)EpochCountNumeric.Value; }
			set { EpochCountNumeric.Value = value; }
		}

		/// <summary>
		/// Indicates whether batch training should be adopted.
		/// </summary>
		public bool UseBatchTraining
		{
			get { return UseBatchTrainingCheck.Checked; }
			set { UseBatchTrainingCheck.Checked = value; }
		}
		#endregion

		#region - Constructor. -
		public SOMProperties()
		{
			InitializeComponent();
		} 
		#endregion
	}
}
